// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial

 TestCase := Rectangle {
    property<int> t1: mod(42, 2);
    property<float> t2: mod(18.5, 10);
    property<int> t3: mod(153, 10);
    property <duration> t4: mod(5432ms, 1s);

    property <bool> test: t1 == 0 && t2 == 8.5 && t3 == 3 && t4 == 432ms;
}
/*
```cpp
auto handle = TestCase::create();
const TestCase &instance = *handle;
assert_eq(instance.get_t1(), 0);
assert_eq(instance.get_t2(), 8.5);
assert_eq(instance.get_t3(),3);
assert_eq(instance.get_t4(),432);
```


```rust
let instance = TestCase::new().unwrap();
assert_eq!(instance.get_t1(), 0);
assert_eq!(instance.get_t2(), 8.5);
assert_eq!(instance.get_t3(), 3);
assert_eq!(instance.get_t4(),432);
```

```js
var instance = new slint.TestCase({});
assert.equal(instance.t1, 0);
assert.equal(instance.t2, 8.5);
assert.equal(instance.t3, 3);
assert.equal(instance.t4, 432);

```
*/
